package com.loby.data.pojo;

import com.loby.data.base.pojo.TMonMonitorStation;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 构建排放口树用的污染源容器类
 * @author loby
 */
@Data
@Builder
public class PollutionSourceTreeItem  implements Serializable {
    private long pkId;
    private String pollutionSourceCode;
    private String orgName;
    List<TMonMonitorStation> stations = new ArrayList<>();
//    public PollutionSourceTreeItem()
//    {
//        stations = new ArrayList<>(1);
//    }
    public void put(TMonMonitorStation station)
    {
        if(stations!=null)
        {
            stations.add(station);
        }
    }
}
